package adminModel

import (
	"time"
)

type AdminTokenStruct struct {
	Id           int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	AdminId      int       `json:"admin_id" gorm:"type:int(11)"`
	AccessToken  string    `json:"access_token" gorm:"type:varchar(255)"`
	RefreshToken string    `json:"refresh_token" gorm:"type:varchar(255)"`
	Expires      time.Time `json:"expires" gorm:"type:datetime"`
}

func (c *AdminTokenStruct) TableName() string {
	return "admin_token"
}
